import request from '@/utils/request'

// 查询自动拉群列表
export function listGroupchatAutoPull(query) {
  return request({
    url: '/wework/groupchatAutoPull/list',
    method: 'get',
    params: query
  })
}

// 查询自动拉群详细
export function getGroupchatAutoPull(id) {
  return request({
    url: '/wework/groupchatAutoPull/' + id,
    method: 'get'
  })
}

// 新增自动拉群
export function addGroupchatAutoPull(data) {
  return request({
    url: '/wework/groupchatAutoPull',
    method: 'post',
    data: data
  })
}

// 修改自动拉群
export function updateGroupchatAutoPull(data) {
  return request({
    url: '/wework/groupchatAutoPull',
    method: 'put',
    data: data
  })
}

// 删除自动拉群
export function delGroupchatAutoPull(id) {
  return request({
    url: '/wework/groupchatAutoPull/' + id,
    method: 'delete'
  })
}

// 导出自动拉群
export function exportGroupchatAutoPull(query) {
  return request({
    url: '/wework/groupchatAutoPull/export',
    method: 'get',
    params: query
  })
}
